﻿using Cms.Domain;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Cms.Tests.Unit.Domain
{

    [TestClass]
    public class MasterTemplateStylesheetTests
    {

        [TestMethod]
        public void CompareTo()
        {
            MasterTemplateStylesheet m1 = new MasterTemplateStylesheet { SortIndex = 1 };
            MasterTemplateStylesheet m2 = new MasterTemplateStylesheet { SortIndex = 2 };
            MasterTemplateStylesheet m3 = new MasterTemplateStylesheet { SortIndex = 1 };
            Assert.AreEqual(1, m1.CompareTo(null));
            Assert.AreEqual(-1, m1.CompareTo(m2));
            Assert.AreEqual(0, m1.CompareTo(m3));
            Assert.AreEqual(1, m2.CompareTo(m1));
        }

    }

}
